home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
3_0
/
DOUBLEDE
/
BACKGROU.C
< prev
next >
Wrap
C/C++ Source or Header
|
1988-07-28
|
793b
|
35 lines
#include "shell.h"
/*====================================================================
dobkgnd()
routine to handle MultiFinder (app4evt) stuff. Test bit 7 in the
EventRecord.message to determine if it is a suspend/resume event,
and determine which by testing bit 31
====================================================================*/
dobkgnd()
{
if( BitTst(&event.message,7) ){ /* suspend/resume event from
MultiFinder */
if(BitTst(&event.message,31)){
/* resume routines */
changedscrap();
if ((w_index=ourwindow(FrontWindow())) >= 0)
HiliteControl(demoButton[w_index],ACTIVE);
}
else{
/* suspend routines */
if ((w_index=ourwindow(FrontWindow())) >= 0)
HiliteControl(demoButton[w_index],INACTIVE);
}
}
}